package de.mmbbs;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

public class FuelBox extends Basic2dObject {

  int speed = 5;

	public FuelBox(Context context) {
		Bitmap bm = BitmapFactory.decodeResource(context.getResources(),R.drawable.benzinkanister);
		super.setBitmap(bm); 
    super.setPosition(20, 30);
    //super.setPosition(Math.random()*(GAMECANVAS.width - bm.width), 30);
	}
	
	
	public void tick() {
   //if(super.getPositionY()+5 <= GAMECANVAS.height)
   {
     super.setPosition(super.getPositionX() + speed, super.getPositionY());
   }
   /*else
   {
     super.setPosition(Math.random()*(super.width - bm.width), 30);
   }*/
  
	}
}
